/*
 * SenderXml.h
 *
 *  Created on: 01.11.2011
 *      Author: Pavel Sinay
 */

#ifndef SENDERXML_H_
#define SENDERXML_H_

#include "impl/SenderSocket.h"
#include "../../common/rapidxml-1.13/rapidxml.hpp"
#include "ExtXml.h"

namespace net {

class SenderXml {
public:
	SenderXml();
	virtual ~SenderXml();

	ExtXml send(std::string const& host, unsigned short port,
			ExtXml const& tx_xml);
	std::vector<char> send(std::string const& host, unsigned short port,
			const std::vector<char> & tx_message);
private:
	SenderSocket m_sender;
};

}

#endif /* SENDERXML_H_ */
